
using System;
using System.Collections.Generic;

namespace Youz.CreditRepay.Entity
{
    public class PlanRepayment
    {
        public DateTime ActionTime { get; set; }
        public decimal Amount { get; set; }
        public RepaymentPlanStatus Status { get; set; }
        public PlanPay Pay { get; set; }
        public List<PlanPay> Pays { get; set; }
    }

    public class PlanPay
    {
        public DateTime ActionTime { get; set; }
        public decimal Amount { get; set; }
        public RepaymentPlanStatus Status { get; set; }
    }

    /// <summary>
    /// CR_RepaymentPlan Entity
    ///</summary>
    [Serializable]
    public partial class CR_RepaymentPlan
    {
        public CR_RepaymentPlan()
        { }

        #region Entity

        /// <summary>
        /// ID
        /// </summary>
        public Int32 ID { set; get; }

        /// <summary>
        /// BankCardID
        /// </summary>
        public Int32 BankCardID { set; get; }

        /// <summary>
        /// BillingAmount
        /// </summary>
        public Decimal BillingAmount { set; get; }

        /// <summary>
        /// RepaymentAmount
        /// </summary>
        public Decimal RepaymentAmount { set; get; }

        /// <summary>
        /// Fee
        /// </summary>
        public Decimal Fee { set; get; }

        /// <summary>
        /// BeginDate
        /// </summary>
        public DateTime BeginDate { set; get; }

        /// <summary>
        /// EndDate
        /// </summary>
        public DateTime EndDate { set; get; }

        /// <summary>
        /// Quantity
        /// </summary>
        public Int32 Quantity { set; get; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { set; get; }

        /// <summary>
        /// CreatedOn
        /// </summary>
        public DateTime CreatedOn { set; get; }

        /// <summary>
        /// ModifiedOn
        /// </summary>
        public DateTime ModifiedOn { set; get; }

        public string MemberAccount { set; get; }

        /// <summary>
        /// 已还款金额
        /// </summary>
        public decimal RepayedAmount { set; get; }

        #endregion Entity

    }
}
